<?php

/**
 * @filename IndexAction.class.php 
 * @encoding UTF-8 
 * @author yuzhiyuan <307090870@qq.com>
 * @copyright copyright 2013 (c) Emagsoftware Technology Co., Ltd. All Rights reserved.
 * @license ……
 * @datetime 2013-6-22  12:42:10
 * @version 1.0
 * @Description
  */
class IndexAction extends BaseAction {
    public function index(){
    	$db = M('Post');
    	$this->posts = $db->order('sort asc,add_time desc')->limit(C('INDEX_POST_NUM'))->select();
        $this->display();
    }
}